package com.ksd.orm.pug.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ksd.pug.pojo.AdminLogs;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * AdminLogsMapper
 * 创建人:yykk<br/>
 * 时间：2022-04-18 21:24:11 <br/>
 * 源码下载：前台代码 git clone https://gitee.com/kekesam/kuangstudy-pug-ui.git
 * 飞哥B站地址：后台代码 git clone https://gitee.com/kekesam/kuangstudy-pug-parent.git
 *
 * @version 1.0.0<br />
 */
public interface AdminLogsMapper extends BaseMapper<AdminLogs> {

    /**
     * 统计浏览器占比
     *
     * @return
     */
    List<Map<String, Object>> stateLogsBrowerversion();

    /**
     * 统计操作系统占比
     *
     * @return
     */
    List<Map<String, Object>> stateLogsOSversion();

    /**
     * 查看方法的耗时和次数
     *
     * @return
     */
    List<Map<String, Object>> selectMethodTime(@Param("timer") Long time);

}